package com.sc.study.client;

import com.sc.study.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Component
@FeignClient(name = "sys-config")
public interface SysConfigClient {

    @RequestMapping(value = "user/getUserById/{id}", method = RequestMethod.GET)
    ResultVO getUserById(@PathVariable Integer id);

    @RequestMapping(value = "dict/getDictName/{dict}/{val}", method = RequestMethod.POST)
    ResultVO getDictName(@PathVariable String dict,@PathVariable String val);

}
